package com.hxk.behaviorMode.Interpreter;

import java.util.Map;

public class VarExpression extends Expression {
	
	private String key;
	
	public VarExpression(String key){
		this.key = key;
	}

	@Override
	public int interpreter(Map<String, Integer> var) {
		return var.get(this.key);
	}

}
